<style>
    .inforReader{
        float: left;
    }
    .detailReader{
        float: left;
        margin-left: 25px;
        font-size: 15px;
    }
    .detailReader span{
        font-weight: bold;
        margin-right: 10px;
    }
    .detailReader p {
        margin: 10px 25px;

    }
</style>
<!--Nội dung cột bên phải -->
<div class="contentRight-2">
    <div class="boxShadowRight-3">
        <div class="boxRightTop-3">
        </div>
        <div class="boxRighMiddle-3" style="min-height: 630px;">
            <div class="lineTitleRight-1">
                <div class="book_bg">              
                    <span>
                        Thông tin cá nhân
                    </span>
                </div>
                <div id="MainContent_ctl07_divContent" class="" style="margin-left: 80px;">
                    <?php if (isset($infoReader) && $infoReader['cardBarcode'] != null): ?>
                        <div class="inforReader">
                            <img src="<?php echo $this->basePath() . $infoReader['profilePhoto'] ?>" style="float: left;width: 140px; height: 170px;">
                            <div class="detailReader">
                                <p><span>Họ tên:</span><?php echo $this->escapeHtml($infoReader['fullName']) ?></p>
                                <p><span>Mã thẻ:</span><?php echo $this->escapeHtml($infoReader['cardBarcode']) ?></p>
                                <p><span>Đơn vị/Khoa: </span><?php echo $this->escapeHtml($infoReader['className'] . '-' . $infoReader['facultyName']) ?></p>
                                <p><span>Khóa học: </span><?php echo $this->escapeHtml($infoReader['yearLearn']) ?></p>
                                <p><span>Ngày sinh: </span>
                                    <?php
                                    $birthday = new DateTime($infoReader['birthday']);
                                    echo $this->escapeHtml($birthday->format('d-m-Y'));
                                    ?>
                                </p>
                                <p><span>Giới tính: </span>
                                    <?php
                                    if ($infoReader['sex'] == 1)
                                        echo "Nam";
                                    else
                                        echo "Nữ";
                                    ?>
                                </p>
                                <p><span>Email: </span><?php echo $this->escapeHtml($infoReader['email']) ?></p>
                                <p><span>Số điện thoại: </span><?php echo $this->escapeHtml($infoReader['phoneNumber']) ?></p>
                                <p><span>Địa chỉ liên hệ: </span><?php echo $this->escapeHtml($infoReader['residentAddress']) ?></p>
                                <p><span>Quê quán: </span><?php echo $this->escapeHtml($infoReader['nativePlace']) ?></p>
                                <p><span>Ngày tạo thẻ: </span>
                                    <?php
                                    $dateCreated = new DateTime($infoReader['dateCreated']);
                                    echo $this->escapeHtml($dateCreated->format('d-m-Y'))
                                    ?>
                                </p>
                                <p><span>Ngày hết hạn: </span>
                                    <?php
                                    $dateExpiry = new DateTime($infoReader['dateExpiry']);
                                    echo $this->escapeHtml($dateExpiry->format('d-m-Y'));
                                    ?>
                                </p>
                                <p><span>Tình trạng: </span>
                                    <?php
                                    if ($infoReader['isActive'] == 0) {
                                        echo "Đăng ký mới";
                                    } else if ($infoReader['isActive'] == 1) {
                                        echo "Lưu thông";
                                    } else {
                                        echo "Tạm khóa";
                                    }
                                    ?>
                                </p>
                                <p><span>Tổng số tài liệu đang mượn:</span><?php echo $this->escapeHtml($infoReader['totalBorrow']) ?>
                                    <a href="<?php echo $this->url('personal') ?>">Chi tiết...</a>
                                </p>
                                <p><span>Thông tin thêm: </span><?php echo $this->escapeHtml($infoReader['description']) ?></p>
                            </div>
                            <?php
                            $form = $this->form;
                            $form->setAttribute('action', $this->url('personal/process', array('action' => 'updateInfoReader','id' => $infoReader['userID'])));
                            echo $this->form()->openTag($form);
                            ?>
                            <div class="searchRow" style="padding-bottom: 15px">
                                <div class="labelSearch">
                                    &nbsp;
                                </div>
                                <div class="fl" style="padding-left: 6px">
                                </span><span class="btnGray">
                                <?php echo $this->formInput($form->get('updateInfoReader')); ?>
                            </span>
                        </div>
                    </div>
                    <?php echo $this->form()->closeTag($form); ?>
                </div>
            <?php endif; ?>
        </div>
    </div>
    <div style="margin: 40px 8px 8px 8px;display: block;">
    </div>
</div>
<div class="boxRighBottom-3">

</div>
</div>
</div>